package com.xja.service;

import com.github.pagehelper.PageInfo;
import com.xja.bean.House;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;

/**
@author 李岩
@date 2021/12/23-10:32
@describe
*/
public interface HouseService{

    @Transactional
    int deleteByPrimaryKey(Integer id) throws Exception;

    int insert(House record);

    int insertSelective(House record);

    House selectByPrimaryKey(Integer id);
    //查询所有的街道信息
    PageInfo<House> selectAllHouse(String pageNum, HashMap map) throws Exception;

    PageInfo<House> selectAllHouse(String pageNum) throws Exception;

    int updateByPrimaryKeySelective(House record);

    int updateByPrimaryKey(House record);

}
